import {
  get,
  post,
  _put,
  _delete
} from './http'

export const addAddress = (params) => {
  let url = "/api/addressList";
  return post(url, params)
}
export const deleteAddress = (params) => {
  let url = "/api/addressList/"+params;
  return _delete(url, params)
}
export const editAddress = (params) => {
  let url = "/api/addressList/" + params.id;
  return _put(url, params)
}
export const getAddress = (params) => {
  let url = "/api/addressList";
  return get(url, params)
}
